/*
 * TransactionList.h
 *
 *  Created on: Mar 24, 2010
 *      Author: mike
 */

//*************************************************************************
// File Name: TransactionList.h
// Definition of TransactionList class - a class that manages and maintains
// a list of transactions made from Transaction class.
// "Group 3"
// CS 1C
// March 25, 2010
// Group Project: SuperWarehouse
// Due: March 25, 2010
// - KZ's comment
//*************************************************************************

#ifndef TRANSACTIONLIST_H_
#define TRANSACTIONLIST_H_

#include "Transaction.h"
#include "GenericList.h"

class TransactionList {
public:
	TransactionList();
	virtual ~TransactionList();

	void addTransaction(Transaction *t);
	void removeTransaction(Transaction *t);
	TransactionList *findTransactions();
	int getNumTransactions() const;
	Transaction *retrieveTransactionAtIndex(int idx);

	TransactionList &operator=(const TransactionList &rhs);

private:
	GenericList<Transaction> list;
};

#endif /* TRANSACTIONLIST_H_ */
